package org.summerframework.component.note;


import org.summerframework.core.base.result.ResultCode;
import lombok.Getter;

/**
 * @author 石超
 * @version v1.0.0
 */
@Getter
public enum NoteResultCode implements ResultCode {
    PLATFORM_NOT_SUPPER(701, "不支持改短息服务"),
    SEND_NOTE_ERROR(702, "运营商发送短息失败"),
    NOT_GET_CODE(703, "请点击获取验证码"),
    CODE_PAST_DUE(704, "验证码已过期,请重新获取"),
    CODE_USE(705, "验证码已被使用,请重新获取"),
    CODE_INPUT_ERROR(706, "验证码不正确,请重新输入"),
    FREQUENCY_LIMIT(707, "获取验证码过于频繁,请稍后再试"),
    RECEIVE_NUMBER(708, "手机号码不正确,请重新输入"),
    REACH_LIMIT(709, "短信发送阈值达到上限"),
    ;

    private int code;

    private String msg;

    NoteResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
